//
//  RecmtItemCell.m
//  laowu
//
//  Created by 尹桥印 on 15/6/3.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "RecmtItemCell.h"

@interface RecmtItemCell()
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;

@property (weak, nonatomic) IBOutlet UILabel *nicknameLabel;
@property (weak, nonatomic) IBOutlet UILabel *registerTimeLabel;

@end
@implementation RecmtItemCell

+(instancetype)itemWithTabelView:(UITableView *)tableView{
    static NSString *identifi = @"RecmtItemCell";
    
    RecmtItemCell *cell = [tableView dequeueReusableCellWithIdentifier:identifi];
    if (!cell) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"RecmtItemCell" owner:nil options:nil] lastObject];
    }
    return cell;
}

-(void)setItemInfo:(RecmdItemInfo *)itemInfo{
    _itemInfo = itemInfo;
    self.userNameLabel.text = itemInfo.userName;
    self.nicknameLabel.text = itemInfo.nickname;
    self.registerTimeLabel.text = itemInfo.registerTime;
}

@end
